package com.ahnu.tongue.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(description = "微信小程序登录请求")
public class WxLoginRequest {
    
    @NotBlank(message = "code不能为空")
    @ApiModelProperty(value = "微信登录code", required = true, example = "0819w00w3Jagny4VNH1w3N9iud1w00wO")
    private String code;

    @ApiModelProperty(value = "用户昵称", example = "张三")
    private String nickname;

    @ApiModelProperty(value = "用户头像URL", example = "https://thirdwx.qlogo.cn/mmopen/xxx")
    private String avatarUrl;
} 